<!--
 * @Author: wangming
 * @Date: 2020-09-07 10:41:59
 * @LastEditors: wangming
 * @LastEditTime: 2021-05-24 14:37:12
 * @Description: 可选标签组件
-->
<template>
  <div class="tags sz g6 bgwh f14 dib">
    <div class="ks-row-middle tag" v-if="!!value">
      <i class="mr5 iconfont" :class="value.icon"></i>
      <span>{{ value.name }}</span>
    </div>
    <div class="dn add tc">放这里</div>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.tags {
  user-select: none;
  line-height: 1;
  cursor: pointer;
  width: 120px;
  height: 32px;
  border: 1px solid #e6e6e6;
  margin-top: 12px;
  border-radius: 4px;
  & > div {
    padding-left: 12px;
  }
  &:nth-child(2n) {
    margin-left: 12px;
  }
  &:hover {
    border: 1px solid #1890ff;
    color: #1890ff;
  }
  & > div {
    height: 100%;
  }
}
</style>
